<?php
/**
 * Created by PhpStorm.
 * User: DELL
 * Date: 2017/2/4
 * Time: 22:31
 */
$this->title = '杂货铺子';
use yii\helpers\Url;
?>
<!---header--->
<header>
    <div class="logo"><!--<img src="images/logo.png">-->小铺</div>
    <!--<div class="search">
        <form action="">
            <input type="text" value="" class="s_ipt" placeholder="请输入商品关键字">
            <input type="submit" value="" class="s_btn">
        </form>
    </div>-->
</header>
<!---header end--->

<!--banner-->
<section id="banner">
    <ul class="bxslider">
        <li><a href="#" ><img src="picture/ad/1.jpg"></a></li>
        <li><a href="#" ><img src="picture/ad/2.jpg"></a></li>
        <li><a href="#" ><img src="picture/ad/3.jpg"></a></li>
    </ul>
</section>
<!--banner end-->

<!--nav -->
<div class="i_img">
    <ul>
        <li><a href="list.html"><img src="picture/cat/美妆.jpg">美妆</a></li>
        <li><a href="list.html"><img src="picture/cat/奶粉.jpg">奶粉</a></li>
        <li><a href="list.html"><img src="picture/cat/保健.jpg">保健</a></li>
    </ul>
</div>
<!--nav end-->

<!--index-act -->
<!--<div class="index-act">
    <div class="index-act-title">活动专区</div>
    <div class="index-act-img"><a href="#"><img src="images/index-1.jpg"></a></div>
    <div class="index-act-img"><a href="#"><img src="images/index-1.jpg"></a></div>
    <div class="index-act-img"><img src="images/index-2.jpg"><div class="index-act-yh"><a href="#">领取优惠券</a></div></div>
</div>-->
<!--index-act end-->

<!--index-act -->
<div class="index-prod">
    <div class="index-act-title index-act-hot">热销产品</div>
    <div class="index-prod-main">
        <?php
        foreach ($arr_goods as $goods) {
            $arr_picture = json_decode($goods['picture'], true);
        ?>
            <div class="shop_li">
                <a href="/goods/index?id=<?php echo $goods['id']; ?>">
                    <div class="p b-t-b">
                        <div class="img">
                            <img src="/goods/<?php echo $goods['channel'].'/'.$goods['goods_id'].'/'.$arr_picture['thumbnail']; ?>"/>
                        </div>
                    </div>
                    <div class="d">
                        <h3><?php echo $goods['goods_name']; ?></h3>

                        <p class="bt">
                            <b><em class="yen">￥</em><?php echo $goods['mktprice']; ?></b>
                        </p>
                    </div>
                </a>
            </div>
            <?php
        }
        ?>
        <div class="clear"></div>
    </div>
</div>
<!--index-act end-->
<!---index-foot--->
<div class="h100"></div>
<footer>
    <div class="index-foot">
        <ul>
            <li class="b_1 cur"><a href="index.html"><p></p>首页</a></li>
            <li class="b_2"><a href="list.html"><p></p>商品分类</a></li>
            <li class="b_3"><a href="cart.html"><p></p>购物车 </a></li>
            <li class="b_4"><a href="personal.html"><p></p>个人中心</a></li>
        </ul>
    </div>
</footer>
<!---index-foot end--->